home *** CD-ROM | disk | FTP | other *** search
Text File | 2000-01-08 | 46.3 KB | 1,037 lines |
-
-
-
-
-
-
-
-
- STRATEGIC BASEBALL SIMULATOR
- Copyright 1988-2000 David B. Schmidt
-
- (SBS)
- Version 3.41
- January 2000
-
-
- E-Mail: DavidSchmidt@wrca.com
- or dbschmidt1@yahoo.com
-
- Web Page: http://www.geocities.com/dbschmidt1/
-
-
-
- Target Computers:
- IBM or 100% Compatible.
-
- Files included in this package:
- BASEBALL.EXE - Strategic Baseball Simulator version 3.41
- EDRNDAC.EXE - Schedule File Editor
- TE.EXE - Public Domain Text Editor
- BASEBALL.MSX - announcer's play-by-play and comments
- BASEBALL.DOC - the file you are reading now
- BASEBALL.CFG - configuration file
- BASEBALL.INF - theory of operation
- BASEBALL.ICO - icon for Windows
- FILE_ID.DIZ - brief program description
- VENDOR.DOC - information for distributors
- READ_ME.TXT - general information
-
- Plus:
- team .DAT files and .SCH / .SER schedule files
-
-
-
- Page 1
- CONTENTS
- Page
- Introduction/Installation..................................... 2
- About Shareware............................................... 3
- Disclaimer.................................................... 3
-
- Overview
- Manual Mode (single-game)..................................... 4
- Two-Team Simulations.......................................... 4
- Schedule File Simulations..................................... 4
- Series File Simulations....................................... 4
- Statistics Reports............................................ 5
-
- Selected Topics
- Selecting Teams............................................... 5
- Selecting Series Files........................................ 5
- Selecting Schedule Files...................................... 5
- Selecting starting pitchers................................... 5
- Manual Mode................................................. 5
- Two-Team.................................................... 5
- Schedule/Series............................................. 5
- Spot Starters............................................. 5
- Designated Hitter............................................. 6
- Statistics recording options.................................. 6
- Statistics File............................................. 6
- Focusing option............................................. 7
- Line Score File............................................. 7
- Box Score File.............................................. 7
- Score Card File............................................. 7
- Selecting starting lineups.................................... 8
- Auto-Lineup option............................................ 8
- Changing defensive positions.................................. 8
- Other "Ground Rules".......................................... 8
- Management options............................................ 9
- Managing in Manual Mode..................................... 9
- "Double-Switch" procedure...................................10
- Computer Manages Both Sides.................................10
- Understanding Schedule Files..................................10
- Schedule Filter.............................................11
- Example of Manageing Inside a Schedule File.................11
- Understanding Series Files....................................11
- Command Line examples.........................................12
- Option switches list..........................................13
- Analyzing the statistics and printing reports.................14
- MAINTAINING and ENHANCING your teams..........................15
- Adding team nicknames.......................................15
- Adding first names to players...............................15
- Platooning..................................................15
- Pitcher Hitting Codes.......................................15
- Notes on constructing your own teams..........................16
- Configuration File - BASEBALL.CFG.............................16
- Windows notes.................................................17
- Support.......................................................18
- Acknowledgements..............................................18
-
-
- Page 2
-
- Program Pedigree:
- 1981 - FORTRAN for IBM VSE/ICCF Mainframes
- 1987 - Version 1.2 MS QuickBASIC 4.0
- 1988 - Version 1.3 MS QuickBASIC 3.0
- 1990 - Versions 1.4 & 1.5 - a few bug fixes - flexible DH
- 1993 - Version 2.01/02 MS BASIC 7.1 - Major revision -
- new features including large simulation capability and
- ability to save and compile statistics
- 1993 - Version 2.5 More flexibility; Capability to save or print
- box scores/score cards/starbox's. Faster. Better display.
- 1993 - Version 2.51 Fixed "missing runner" bug in 2.5. Fixed
- problem with detecting hitting streaks in BASESTAT.
- 1995 - Version 3.0 - Major revision
- Loads stat files in memory for immediate access
- New format Schedule Files by date
- Improved play-by-play
- 1996 - Version 3.01 - Minor bug fixes
- 1998 - Version 3.1 - Complete support for inter-league play
- 1999 - Version 3.3 - Various enhancements
- 1999 - Version 3.4 - Improved "user-interface". Better accuracy.
- 2000 - Version 3.41 - Fixed bug for data files that didn't use the
- "caught stealing" column.
-
- INTRODUCTION
-
- The Strategic Baseball Simulator (SBS) is a flexible, reasonably
- thorough, yet relatively simple baseball simulation program. It is
- a game in which one can play against another human or against the
- computer manager. It can also be considered a simulation tool in
- which many games are played out rapidly in order to discover
- strengths and weaknesses in a particular line-up. This program is
- NOT an arcade-type game with graphics. But if you are a baseball
- fan it is FUN and -- to some -- addictive! SBS is very easy to use.
- It cuts through the nonsense to get you into the action quickly. A
- game can be played manually in few minutes. Or use it to simulate
- large numbers of games in a very short time.
-
- SBS works by reading in actual statistics for each player. The
- program then runs a statistical model to simulate baseball. This
- results is a good approximation, especially over a large number of
- games. For a typical player/season of 600 at-bats, about 40% of
- players will finish within 10 points of their actual average. About
- 75% will be within 20 points and about 95% will be within 40
- points. With the "focusing" option enabled, the numbers given
- above are significantly improved.
-
-
- INSTALLATION
-
- Nothing fancy. Just make a subdirectory and copy the files.
- DOS Commands:
- 1] create a subdirectory:
- > md \SBS34
-
- 2] log into the subdirectory you just created:
- > cd \SBS34
-
- 3] copy the files into the subdirectory you just created:
- i.e., put source diskette in drive A [or B], then:
- > copy a:*.* [ or copy b:*.* ]
-
- Start the program by entering "baseball" at the DOS prompt.
-
-
- Page 3
-
- DEFINITION OF SHAREWARE
-
- This program is copyrighted shareware, but since there is no
- registration fee, it is commonly called "freeware".
-
- Copyright laws apply to both Shareware and commercial software, and
- the copyright holder retains all rights, with a few specific
- exceptions as stated below. Shareware authors are accomplished
- programmers, just like commercial authors, and the programs are of
- comparable quality. (In both cases, there are good programs and bad
- ones!) The main difference is in the method of distribution. The
- author specifically grants the right to copy and distribute the
- software, either to all and sundry or to a specific group.
-
-
- DISCLAIMER - AGREEMENT
-
- Users of Strategic Baseball Simulator must accept this disclaimer
- of warranty: "Strategic Baseball Simulator is supplied as is. The
- author disclaims all warranties, expressed or implied, including,
- without limitation, the warranties of merchantability and of
- fitness for any purpose. The author assumes no liability for
- damages, direct or consequential, which may result from the use
- of Strategic Baseball Simulator."
-
- Strategic Baseball Simulator is a copyrighted "shareware program",
- but unlike most shareware progams, there is no registration fee.
- The author would just like an email saying "thank you" along with
- comments and suggestions. Feel free to share it with your friends,
- but please do not alter it in any way or as part of another system.
-
- The accompanying text editor, TE.EXE, that is distributed with SBS
- 3.xx is an example of Public Domain Software. We did not write it,
- and claim no rights to it. We do not support TE. <F5>, followed by
- "Y" for yes and "1", "2", or "3" to indicate which parallel port
- your printer is attached to (usually "1") lets you print the file
- you are reading, and <F4> exits TE.
-
- Strategic Baseball Simulator makes NO references to actual
- professional teams or leagues. No team nicknames and no actual
- leagues or divisions are referenced. Player names have been
- encrypted for the non-oldtimer players. You may edit the supplied
- data files for your own use, but altered data files may NOT be
- distributed.
-
-
-
- Page 4
-
- OVERVIEW AND THE OPENING MENU
-
- You are presented with several options here.
-
-
- MANUAL MODE
-
- Here you will select two teams. You can manage against the computer
- or against a friend or you can manage both sides if you want. Or
- you can tell the computer to manage both sides. "Manual Mode" puts
- you in control.
-
-
- TWO-TEAM SIMULATION
-
- Again you will select two teams. But in this mode, the object is to
- let the computer manage both sides in order to simulate as many
- games as you want as quickly as possible. This is great for trying
- to compare which team is really "best". In baseball you need a
- great number of games to played out before the statistics can
- reveal a true picture. You will probably elect to create a
- statistics file for your simulation so you can later review all the
- stats. The simulation will start with the program running as fast
- as it can. (Delay factor = 0). If you want to slow it down, you can
- do so by popping up the Control window and changing the "Delay". You
- can also type "R" (Results) during the run to check the Won-Lost
- results and highlight summary.
-
-
- SCHEDULE MODE
-
- In version 3.x, "schedules" are a little database containing games
- to be played organized by dates. You may select one of the
- schedules provided or create your own. Generally the computer will
- play out these games as fast as it can, however you can select a
- team or teams that you wish to manage manually (which will
- temporarily put you in "manual mode"). You can interrupt the schedule
- after any game and pick up where you left off next time. You may
- also start and play the same schedule file multiple times. You just
- specify unique statistics files to do this.
-
-
- SERIES MODE
-
- This is similar to TWO-TEAM mode, but now the computer
- automatically cranks through a pre-determined list of games. These
- lists might be all 162 games for a given team or all the games for
- an entire league. When you select the Series Mode, you are
- presented with a list of "series files" to choose from. Series
- files are nothing more than ASCII text files which list the teams
- to play and how many games they are to play against each other.
- [V]iew one of these files to see how they are set up. Then you can
- create your own series files for your favorite teams using your
- favorite text editor or word processor. You will doubtless want to
- save statistics from your "Series Mode" simulations which you can
- later examine. The simulation will start with the program running
- as fast as it can. (Delay factor = 0). If you want to slow it down,
- you can do so by popping up the Control window and changing the
-
-
- Page 5
-
- Delay. You can also type "R" during the run to check the Won-Lost
- results and highlight summary.
-
-
- STATISTICS REPORTS
-
- Select a statistics file you have built (or are currently using)
- and get a report.
-
-
-
- SELECTED TOPICS
-
- SELECTING TEAMS
-
- All the files in your current directory with the extension of .DAT
- are displayed. Just highlight the team you want by moving the arrow
- keys and hit ENTER. You may [V]iew or [E]dit these files by
- highlighting them and typing V or E. In order for the "E" to work,
- SBS must find a text editor on your system. The editor "TE" is
- included, but you can use other editors if you wish. This is done
- by entering the line EDITOR=[file specification] into the
- BASEBALL.CFG file. See the topic CONFIGURATION FILE - BASEBALL.CFG.
-
- SELECTING SERIES FILES
-
- Just like selecting teams, except the computer displays files with
- the extension .SER. You can [V]iew or [E]dit these files, too.
-
- SELECTING SCHEDULE FILES
-
- As above, except the computer displays files with the extension
- .SCH. You can [V]iew or [E]dit these files, too.
-
-
- SELECTING STARTING PITCHERS
-
- Manual Mode:
- Highlight the pitcher you want by moving the arrow keys and hit
- enter.
-
- Two-Team Mode:
- You can specify the exact pitching rotation. Highlighting the
- pitchers you want and hitting enter builds your rotation list. When
- you are done press ESC. Then you may press [O]k to accept, c[L]ear
- or [C]ancel.
-
- Schedule/Series Mode:
- You can go through the starting rotation sequentially, i.e. each
- pitcher in turn, or let the computer pick starters at random, or
- select one pitcher to start every game. First, pick the number of
- starters in your rotation --- normally 4 or 5. Then select either
- the Sequential or Random method ["S" or "R"]. When you choose
- Sequential the pitching order is as it is recorded in the .DAT
-
-
- Page 6
-
- file. You may edit the .DAT file with a text editor to change this
- default order of pitchers if you want.
-
- Spot Starters:
- If you select "Y" (yes) for this option, the computer will utilize
- all the pitchers in the .DAT file as occasional starters if the
- pitcher has a non-zero number of starts entered under his "Started"
- column. NOTE! The .DAT files for our OLD-TIMER teams probably will
- NOT include this data so, sorry, this option won't work for them.
- (Of course, you can always do your own research and fill in this
- data yourself!)
-
-
- THE DESIGNATED HITTER RULE
-
- You are always given the option of whether to use the Designated
- Hitter. The default is NO except when both teams are from the
- "A" League after 1974. Most of the "A" League teams of
- the last two decades will have the DH included in their .DAT files.
- For other teams, the computer will pluck the first player on the
- "bench" and insert him in the lineup in slot number 5 as the DH. If
- you are building your own series or schedule files it is always a
- good idea to include the /DH switch on each line. But more about
- building those files later.
-
-
- STATISTICS RECORDING OPTIONS
-
- When the "Statistics Recording Options" window appears, you have
- the opportunity to save STATISTICS, save the line-score, save the
- BOX SCORE, or save the SCORE-CARD at the end of each game (Or any
- combination of the above). If you save statistics you also have an
- option called "Focusing". Focusing let's the computer "peek" at a
- player's performance during execution of a stat file and help or
- hinder him a bit accordingly.
-
- Leave the input fields blank if you do not want to save the
- information. File names should be from 1 to 8 characters long. You
- can keep adding information to the end of existing files or you can
- erase old files and start fresh. If you want to erase a file, type
- a "Y" under the "Erase File?" heading.
-
- Statistics File:
- Don't use a "file extension" for the statistics file -- if you do
- SBS will ignore it.
-
- SBS automatically generates several DOS statistics files for each
- "stat" file you specify. A summary file with extension of .STS, a
- batter file with extension .STB, a pitcher file with extension
- .STP, a highlight file with extension .STH, a pitching rotation
- file .ROT, a standings file .STD, a "restart" file .RES (so SBS
- knows where in an associated schedule file to continue from).
-
-
- Page 7
-
- Focusing:
- This option is only applicable if you are using a statistics file!
- If set to "Y" (yes), the program will look at how well each player
- is performing in the current stat file. It will then give a little
- extra "help" to players who are struggling and conversely make
- things a little tougher on players who are too "hot". Focusing
- allows the program to "cheat" a little in order to make the final
- results more closely parallel the original .DAT file. Focusing
- never goes into effect until a batter is more than 1/2 way through
- a season (his Sim AB / .DAT AB must be greater than .5 -- for
- pitchers IP is used). It is NOT necessary to use focusing in order
- to get good results. SBS's statistical model works very nicely in
- the "blind" mode as well! But for replaying an entire season
- schedule you may want to use it.
-
-
- Line Score File:
- The LINE SCORE generated is just an ASCII text file containing the
- line score by innings and the total runs, hits and errors for each
- team.
-
- Box Score File:
- The BOX SCORE file is just an ASCII text file dump of the box score
- at the end of the game. You can view these box score files with any
- word processor, text editor or file viewer. Or, from DOS, just do
- more < filename
- in the directory where the box score file is and
- where "filename" is the name of your file you want to view.
-
- Score Card File:
- The SCORE CARD file is an ASCII text "shorthand" log of the
- play-by-play, not an actual scorecard. I usually do not save the
- score card file because it tends to eat up quite a bit of disk
- space. You probably don't want to do this on long simulations. See
- the preceding paragraph on viewing text files.
-
- You may print out these reports automatically at the end of each
- game by entering LPT1 (or 2 or 3) as the file name.
-
- Box scores for games in which outstanding performances occur may be
- automatically saved in a file called STARBOX.TXT (or whatever you
- wish to name it) in your current directory. See "CONFIGURATION FILE
- - BASEBALL.CFG" on page 13 for more information.
-
-
- Page 8
-
- SELECT STARTING LINEUPS
-
- For Manual Mode / Two-Team Simulations:
- The default starting lineups are displayed for each team. You have
- the opportunity to make changes in the lineup or batting order as
- you see fit. The changes you make are temporary. (The team .DAT
- files on disk do not change unless you edit them). You can swap
- players between the starting lineup and the bench. You can change
- the batting order also, as long as the game(s) has not started yet.
- Swapping is done by just typing the numbers of the players you want
- to switch.
-
- For Schedule / Series File Mode:
- Since schedule and series files usually involve many teams it was
- not feasible to allow manipulation of the lineups in these modes.
- However you can always go back and edit the .DAT files directly to
- change lineups to your liking. One exception to this -- you may
- elect to manage selected teams MANUALLY under Schedule Mode. Then
- you can fiddle with their lineups prior to each game.
-
- Auto-Lineup:
- This feature allows the computer to pick various starting lineups,
- not just use the default lineup in the .DAT file. This way the
- bench is utilized much more realistically. For long, season-length
- simulations this is the way to go. This feature works best on the
- latest .DAT files that have Games By Position information on each
- player's line. But the program will make a good attempt at using
- this feature even on the old-timer teams where this data is not
- available.
-
-
- CHANGING DEFENSIVE POSITIONS
-
- For Manual Mode / Two-Team Simulations:
- Once your starting lineup is intact, you may switch defensive
- positions of the players if you like. This is done by typing the
- numbers of the players you want to switch positions.
-
- Outfielders playing infield and vice-versa will be penalized
- defensively!! Middle infielders playing at the corners will be
- penalized as well as corner infielders playing in the middle. The
- penalty is not too severe but you will notice an increase in the
- number of errors committed by out-of-position players.
-
- This option is not available in "Schedule" or "Series" Mode. You
- must edit the .DAT file directly.
-
-
- SELECTING WHO MANAGES WHOM - OTHER "GROUND RULES"
-
- In the "Ground Rules" screen [Manual Mode] you decide whether the
- computer will manager either, both, or none of the teams. [For
- teams which are manually controlled, the player(s) use "pop-up"
- command windows throughout the game that let them control their
- offensive or defensive options]. You will also determine the "Delay
- Factor". This determines how long you have to read the announcer's
- comments which determines the speed of the simulation. Try "2" or
-
-
- Page 9
-
- "3" to start out with. If this is a little too slow for you, change
- it to "1" later. The last thing you are asked before the game
- starts is if you want the computer to HIDE the decisions you make
- within the pop-up command windows. You should only elect to HIDE if
- you are managing against another human player who might "steal"
- your signals.
-
-
- MANAGING IN MANUAL MODE
-
- "Normal mode"
-
- If the computer is managing one or both sides OR you decline to
- "hide" your strategy before the game starts you'll be in "normal"
- mode. You control The "command window" by hitting V for visitor
- and H for home. Just use the arrows to select the strategy you
- want and ESC to close the window. Of course most of the time
- you'll just be hitting ENTER and proceding with the action rather
- than popping up the command window.
-
-
- "Hide mode"
-
- If the computer is NOT managing EITHER side you are asked (before
- the game starts) if there is another player beside yourself. If
- there is you may choose to "hide" the strategy decisions you make
- within the "command window". The visiting team's command window is
- activated by hitting "S". This displays a list of either offensive
- or defensive actions.
-
- Keyboard:
-
- W > Scroll through your options using the "W" and "X" keys.
- > "Mark" the options (On or Off) using the "A" and "D"
- A S D keys (A=On D=Off)
- > The computer WILL NOT DISPLAY the results
- X of the "A" and "D" keys (on/off) in order to HIDE your
- decisions from your opponent.
- > Move the pointer to "READY/EXIT" and hit "A" when done.
-
- The home team's command window is activated by hitting the "5" key. (SBS
- attempts to turn on your numeric-lock so you can use your numeric keypad).
-
- 8 > Scroll through your options using the "8" and "2" keys.
- > "Mark" the options (On or Off) using the "4" and "6" keys.
- 4 5 6 (4=On 6=Off)
- > The computer WILL NOT DISPLAY the results
- 2 of the "4" and "6" keys (on/off) in order to HIDE your
- decisions from your opponent.
- > Move the pointer to "READY/EXIT" and hit "4" when done.
- Or, if your opponent is the computer, just hit ESC.
-
- Remember, if you don't want to make a strategy move (which is most
- of the time) just hit ENTER.
-
-
- To quit the game, hit "Q". (You get a chance to change your mind.)
- To get the current "Box Score" hit "B".
- To check the "Score Card" hit "C".
-
-
- Page 10
-
- If you change your mind about which teams the computer should
- manage, hit "O" and the "Options" window appears in the middle of
- the screen. You can also change the Delay Factor and turn the Sound
- Effects on or off.
-
- All of the options in your Options window are self-explanatory
- (except for "Focusing"), but you will need the following special
- instructions if you want to do a "double-switch" maneuver.
-
-
- "DOUBLE-SWITCH" - Only valid with no DH, i.e. pitcher must be in
- batting order
-
- 1) Get new pitcher from bullpen.
- 2) Immediately pop up the "Substitute" window and switch in a new
- defensive player. THEN type "DS" (for Double-Switch) while still
- in the Substitute window. This will place the new pitcher in the
- batting slot previously occupied by the outgoing player and the
- new defensive player into the old pitcher's batting slot.
-
-
- LETTING THE COMPUTER MANAGE BOTH SIDES
-
- If you pick the automatic manager for BOTH teams, you will have no
- input into the game yourself...all you do is sit back and watch the
- game unfold. You may hit "O" (for Option Window) to halt the
- action at any time. Then you may choose to reset the "AutoManger"
- for either or both teams or change the "Delay Factor". If you want
- to follow the action you probably want to set the Delay at 2 or 3.
- If you want to play the game out as quickly as possible, set it at
- "1" or even "0". With AutoManager on "Y" for both sides and a Delay
- of "0" the game will be played out in a matter of a second or two.
-
-
- UNDERSTANDING SCHEDULE FILES
-
- "Schedule Files" are the primary method you will want to use to
- play long, involved "schedules" of games. Normally you run these
- schedules as fast as possible except perhaps for games you want to
- manage manually. You can run and/or edit any schedule files
- provided or you may build your own. From the main menu, choose the
- Schedule Files option. You may pick an existing file or choose to
- edit/view one by pressing "E".
-
- If you choose to edit one of these .SCH files, notice that they are
- arranged by date. Highlight and enter a date or press INSERT to add
- a new date. Then you may specify the file names of the teams to
- play and any special "switches". See UNDERSTANDING SERIES FILES for
- more information about these options.
-
- Two switches (only valid for schedule files) are the /VM: and /HM:
- options. They allow you to manually manage teams of your choice.
-
- /VM:+ adds visiting team to manual manage list
- /VM:- removes visiting team from manual manage list
- /HM:+ adds home team to manual manage list
- /HM:- removes home team from manual manage list
-
-
- Page 11
-
- Schedule Filter:
- You don't have to run all the games in a schedule file. After you
- pick your .SCH file, the "Schedule Filter" window pops up to allow
- you to run just the games for a single league, team and/or date range.
- Leave this blank to go ahead and run all the games. Fill in the
- .DAT file name for your favorite team if that's what you want.
- (Don't type the .DAT part here). The naming conventions for .DAT
- files are Year + League + 1st 5 characters of city/location. So the
- 1997 team from New York in the "A" League would be named
- 97ANEWYO.DAT. The team from St. Louis would be 97NSTLOU.DAT. Dates
- should be entered in MM/DD/YY format, e.g. 04/09/97. Make sure the
- dates inside your .SCH file are maintained in this format also.
-
- You probably won't want to run a long schedule file in one sitting.
- So, IF YOU HAVE SPECIFIED A STATISTICS FILE to save info for this
- schedule run, you can press Q (for quit) while a schedule file is
- running and the action will stop after the current game is
- completed. Next time you start SBS you can RESTART where you left
- off when you pick the schedule file and the same statistics file.
-
- Example of manageing inside a schedule file:
- EXAMPLE: You want to run the 97ML.SCH and manage Texas (97ATEXAS).
-
- 1. Highlight the .SCH file 97ML and press "E" to edit.
- 2. Highlight the date that you want to start manageing this team
- manually. Let's say 04/10/97. Hit ENTER.
- 3. Find 97ATEXAS -- use the arrow keys to get in the options area.
- 4. Since Texas is the visiting team here, type in /VM:+. Hit ESC.
- 5. If you want to remove Texas from the Manual Manage List at a
- later date, highlight that date and enter /VM:- or /HM:-
-
-
- UNDERSTANDING SERIES FILES
-
- "Series Files" are another vehicle through which SBS knows to play
- certain teams a certain number of games. The series file is just a
- text file with a file extension of .SER that you can build yourself
- with your text-editor program or word processor. It contains the
- teams and number of games they are to play and other information if
- desired. YOU CANNOT STOP AND THEN RESUME SERIES FILES LIKE YOU
- CAN SCHEDULE FILES! If you quit a series file before it completes,
- you're done.
-
- Options are entered via "switches". The order of the
- switches should not matter. For example, one such series file
- might contain the following lines:
-
- /v:97nnewyo.dat /h:97nstlou.dat /n:9
- /v:97nnewyo.dat /h:97nchica.dat /n:9
- (etc. etc. through all the "E" Division teams)
-
- /v:97nnewyo.dat /h:97ncinci.dat /n:6 /hp:S4
- /v:97nnewyo.dat /h:97natlan.dat /n:6
- (etc. etc. through all the "W" Division teams)
-
-
- Page 12
-
- The /v: means, as you probably guessed, the visiting team. And of
- course the /h: means the home team. The number following the /n:
- determines the number of games. You can also use the /vp: and /hp:
- switches to override the default starting pitching rotation scheme
- which was discussed earlier. But, at a minimum, each line in a
- series file must contain the /h: /v: and /n: switches.
-
- You can use these switches to override the normal starting rotation
- method you pick in the program. See the example above -- with the
- /hp: and /vp: switches. You can also override whatever you choose
- on the DH rule with the /dh: switch. (See listing of command-line
- options for more details).
-
-
- COMMAND LINE EXAMPLES
-
- You may never want to start SBS using "command line" options, but
- they are available. They might be useful if you intend to run SBS
- from a batch file. Note that you can basically use the same
- switches from either the command line or inside a schedule file.
- Here are a few scenarios showing the use of command line options.
-
- Example 1: You want to play 12 games with the '27 A New York
- visiting the '61 A New York. You don't want the DH. You want each
- team to cycle through a 4-man pitching rotation. You want to save
- the results to a statistics file named "styanks".
-
- >baseball /v:27anewyo /h:61anewyo /sp:S4 /dh:n /st:styanks /n:12
-
- The /V and /H switches load the visiting and home teams
- respectively. If you leave off the file extension on the team
- files, the program assumes .DAT. The /SP switch sets both teams to
- use S4 -- Sequential four-man rotation. If you omit the /SP switch
- the default is S5 for both teams - a five-man rotation. /DH:N
- forces NO DH, although if you leave if off the default is NO DH
- anyway. /ST gives the name of the statistics file you choose. (File
- extensions on /ST are ignored). The statistics file "styanks" will
- be created as four separate files - STYANKS.STS, STYANKS.STB,
- STYANKS.STP, STYANKS.STH. /N:12 says to play 12 games.
-
- Example 2: Suppose we want the '27 A NY to use a 3-man rotation.
-
- >baseball /v:27anewyo /h:61anewyo /vp:S3 /hp:S4 /st:styanks /n:12
-
- Since the pitching rotation is different for each team, we have to
- use the /VP and /HP switches instead of /SP. Notice that if we
- don't want the DH we don't need to specify the /DH switch.
-
- Example 3: You want to simulate the entire '97 season.
- A 5-man rotation is OK for all teams. Save statistics to "st97".
-
- >baseball /sch:97ml.sch /st:st97 /bx:st97.box
-
-
- Page 13
-
- The /SCH switch specifies the name of the schedule file which MUST
- ALREADY EXIST. The /ST switch will save the statistics to DOS
- files -- ST97.STS, ST97.STB, ST97.STP, and ST97.STH.
- All box scores saved to ST97.BOX.
-
-
- OPTION SWITCHES LIST
-
- Here is a list of all the switches that can be set from the DOS command
- line or inside a "Schedule" or "Series" file. You may enter as many
- switches as you need. Each one must be separated by a space. Each
- line in a Series file must contain, at a minimum, the /H: /V: and
- /N: switches.
-
- On switches that take a "Y" or "N" argument, you can save space by
- omitting the :Y if you want "yes". For example: /DH is equivalent
- to /DH:Y.
-
- /P:path
- If your .DAT files reside in some other drive or directory
- other than the one where "BASEBALL.EXE" is, you need the /P:
- Example: >baseball /p:b: (.DAT files are in drive b)
- >baseball /p:\nat91 (.DAT files in \nat91 subdirectory)
- /PW:path WRITE
- Saves all your OUTPUT stat files to the path you specify here.
- Useful if SBS is installed in a write-protected network directory.
- Also very handy to keep all your stat files in a separate directory
- for easy backup!
- Example: >baseball /pw:c:\mystats
- /H:team.dat (home)
- /V:team.dat (visitor)
- /DH:Y or N (default is N)
- /SCH:schedule file (command line only)
- /N:number of games (default is 1)
- /SP:S5-S2 or R5-R2 or 1-5
- Default Starting Pitcher Selection Method: If you are
- simulating many games, there are different ways the computer
- uses to pick the starting pitcher. If you do not specify the
- /SP switch, program defaults to S5, sequential 5-man rotation.
- /VP: (same as SP) Override /SP for the Visiting Team in /V:
- /HP: (same as SP) Override /SP for the Home Team in /H:
- /S:Y or N Turns Sound Effects On or Off
- /C:C or M Force Color or Monochrome display. The program should be
- smart enough to figure this out without relying on this switch.
- /ST:statistics file.
- This file name may be 1 to 8 characters long. Do NOT use a file
- extension.
- /BX:box score file. File extensions OK.
- /SC:score card file. File extensions OK.
- /STB:StarBox file. File extensions OK.
- /DEL:delay factor 0-9 How long (in seconds) you get to read the
- play-by-play
- /SPT Spot Starters
- /FOC Focusing
- /AUL Automatic Lineup
-
-
- Page 14
-
- For Schedule Files Only:
- /VM:+ or - Inserts or Removes Visiting Team in Manual Manage List
- /HM:+ or - Inserts or Removes Home Team in Manual Manage List
-
-
- ANALYZING THE STATISTICS and PRINTING REPORTS
-
- Choose the stat file you want to analyze and SBS will then
- summarize the results and print them out directly or to a .PRN file
- on disk.
-
- You can also send the .PRN files to your printer at
- your convenience at a later time.
-
- + - - - - - - - DOS commands you should know: - - - - - - +
- | |
- | Viewing a file: type "filename.ext" | more |
- | more < "filename.ext" |
- | Printing a file: type "filename.ext" > LPT1 |
- | copy "filename.ext" PRN |
- | |
- + - - - - - - (do not type the quotations marks) - - - - +
-
-
-
-
- Page 15
-
- MAINTAINING and ENHANCING YOUR TEAMS (or build your own teams!)
-
- You can change information on the team files or make up your own
- teams using any text editor. Just about any word processor will do
- also, but make SURE you save the file in plain ASCII format. This
- is sometimes called DOS MODE or NON-DOCUMENT MODE or some-such
- thing. Or use TE, the included public-domain editor. Make sure you
- follow the exact format used in the team files supplied. Everything
- has to be in its own particular column, etc. The best way is to
- copy one of the .DAT files you already have and then edit the new
- copy.
-
- Team Nicknames:
- Nicknames have purposely been omitted but you can add them
- yourself. The first line contains the codes for the team's league
- and division as well as the name of the team. If you want to change
- the name of the team (use its nickname for example), edit this line
- starting in column 11.
-
- Players' Names:
- Names of active players have been scrambled. However, you can
- easily edit these names yourself also.
-
- Platooning:
- "Platooning" is when a manager starts a right-handed hitting player
- against left-handed pitching, but benches him in favor of a left-
- handed hitting player against right-handed pitching. SBS supports
- this in the following manner by direct editing of the .DAT files.
- Type an "A" in column 5 of the .DAT file next to the player in the
- starting lineup. Then type an "A" in column 5 next to the player on
- the bench that you want to platoon with him. Neither player should
- be a switch hitter. If there are more players you want to platoon
- at the same time match them up with a "B" and so on. When SBS
- displays the starting lineup it will swap the marked players
- depending on the "handed-ness" of the opposing pitcher. SBS will
- not do "platoon-swapping" after pitching changes while a game is
- in progress. If column 5 of a player's record is marked, SBS
- assumes that his statistics were generated primarily against
- opposite-handed pitchers, so his average is not "boosted", as would
- be the case of straight lefties vs righties, and vice-versa.
-
- Pitcher Hitting Codes:
- SBS does not contain batting data for pitchers. If you are not
- satisfied with the default values (.140 average) for pitchers, you
- can edit the .DAT files and insert a special code into a pitcher's
- line. Just place an A, B, C, D or E in column 81 to represent the
- following batting averages for pitchers:
- A = .240
- B = .190
- C = .140
- D = .090
- E = .040
-
-
- Page 16
-
- NOTES ON CONSTRUCTING YOUR OWN TEAMS
-
- Slots 1 thru 9 are the default starting lineup and batting order.
- If you do not want a DH in your default starting lineup, leave slot
- 9 blank like I have in my "N" League files.
-
- Slots 10 thru 14 are for starting pitchers. Relief pitchers begin
- in slot 15, although #14 can be used in relief if desired. You may
- have as few as 2 or as many as 8 relief pitchers. The man in slot
- 15 will be your "closer" -- the guy who comes in in the late
- innings to try to nail down a save. After the relief pitchers there
- should be a line beginning with a "*" and then the "bench". You may
- fill out the bench down to slot 30. This allows a roster of 30
- players if a DH is specified in the lineup or 29 players if not
- (that's because slot 9 is wasted if the DH is not used).
-
- If you do not include a DH in the default starting lineup, and then
- choose to use a DH in the program, the first player on the bench
- will be inserted as the DH into the number five spot.
-
- A Reminder:
- If you are adding your own team files, you must use the file extension
- .DAT for your data file. You may store up to 900 teams in a given
- subdirectory. If your team .DAT files are in a different subdirectory
- than the BASEBALL.EXE, you must start the program with the path switch.
- For example, if your .DAT files are in a subdirectory called \bbal you
- would start the game with: baseball /p:\bbal
-
-
- CONFIGURATION FILE - BASEBALL.CFG
-
- This is an important file, although SBS will run without it. The
- configuration file contains information about each league for a
- given year. This enables SBS to reduce "bias" of one era versus
- another. These stats are used to compute "League Average" values
- for a given league/year -- see discussion in BASEBALL.INF. If there
- is no .CFG file, SBS uses some "hard-coded" values which reflect
- recent-era data. If the team you select is from a year or league
- that is not covered in the .CFG file, then SBS uses the default
- values contained in the file -- the DEF A and DEF N lines. If you
- choose to edit this file, keep the columns lined up correctly!
-
- You may also control the standards which determine when a game's
- box score is saved to your "STARBOX" file. This is done in the
- HILITE line. For example, if you want to save the box score if
- someone gets 5 or more hits you would enter "5" under Hits. If you
- want to save box scores of pitching gems of 3-hitters or better
- enter a "3" under the PHit column.
-
-
- Page 17
-
- Here are some sample lines from the .CFG file for reference and
- the columns in which these values must fall:
-
- columns 11-16 18-23 25-30 32-37 39-44 46-51
-
- Hiline line example:
- * | Hits| HR| RBI| SB| PHit| SO|
- HILITE | 5| 3| 7| 3| 2| 14|
-
- Year/League summary line example:
- *Yr L | Inn | Hits| 2B| 3B| HR| BB|
- 1902A | 9732| 10451| 1679| 569| 258| 2815|
-
- As mentioned earlier, this file may also contain the "path" to your
- text-editor.
- EDITOR=path to editor program
-
- If your printer is on another port beside LPT1, you can specify
- this as follows:
- LPT=2 (or 3)
-
- If SBS is installed on a network, the statistics files generated
- will obviously need to be written to a space with "write"
- privileges. Just enter the lines:
- WRITE-PATH=c:\stats (or whatever path you want)
- PROTECT-SCH
-
- Microsoft WINDOWS
-
- It can be very nice to run a long SBS simulation in the
- "background" under Windows. You can allows the application to run
- in the "background" while you run other programs. I recommend
- running the program in "full-screen" mode, although you can toggle
- to "windowed" mode with ALT+ENTER if you want. Included in this
- package is BASEBALL.ICO, an icon for SBS to use with Windows.
-
- How to set up an icon for SBS under Windows 3.1:
- (This also assumes the program is installed in c:\sbs34)
- From Program Manager Menu:
- 1) File
- 2) New
- 3) Program Item [OK]
- 4) Description: SBS 3.4
- Command Line: c:\sbs34\baseball.exe
- Working Directory: c:\sbs34
- 5) Click the "Change Icon" button
- Filename: c:\sbs34\baseball.ico
-
- How to set up an icon for SBS under Windows 95:
- Right-click on your "desktop". Select New... Shortcut
- Command Line: C:\SBS34\BASEBALL.EXE. Run in Full-Screen mode by
- clicking the little cross on the toolbar of the DOS Window.
-
-
-
- Page 18
-
- SUPPORT
-
- The author loves feedback from users! Write to the address below or
- contact me via E-Mail.
-
- Here's the address:
- D.B. Schmidt If this doesn't match the address on
- 2905 N. 39th Terrace the opening screen, suspect tampering.
- St. Joseph, Missouri 64506
-
- E-mail: davidschmidt@wrca.com
- or dbschmidt1@yahoo.com
-
- Web Page: http://www.geocities.com/dbschmidt1/
-
-
-
- ACKNOWLEDGEMENTS
-
- Microsoft's BASIC development personnel.
-
- Thomas Hanlin III for his excellent ADVBAS routines. Highly
- recommended. ADVBAS is a library of BASIC routines available by
- shareware. SBS makes good use of a number of these routines.
-
- Ethan Winer for his superb book "BASIC Techniques and Utilities".
-
- Brandon Cope of Eagle Lake, TX who compiled the 1998/99 teams and many
- other teams as well. Also his de-bugging work was very helpful.
-
- Craig J. Poff of Beaufort, SC who contributed team data and provided
- much encouragement and support.
-
- Thomas Riggs of Longview, TX who researched teams for early
- versions of this program.
-
- SPECIAL thanks to Robert Logbeck of Overland Park, KS. He built
- most of the old-timer teams and and researched most of that data in
- the .CFG file and found lots of program glitches which I failed to
- detect. Without his help SBS would be a much poorer work.
-
- And finally thanks to all the rest of you who wrote and offered
- suggestions and encouragement.
-
-